//
//  AppDelegate.h
//  ShopCart&FMDB
//
//  Created by 肖曙 on 17/4/11.
//  Copyright © 2017年 xiaoshu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FMDatabase.h"
#import "FMDatabaseAdditions.h"
#import "GoodsModel.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (nonatomic, strong) FMDatabase *shopCartdb;
//插入一条数据
- (void)insertDateToShopCartFMDB:(GoodsModel *)goodsModel;
//删除一条数据
- (void)deleteOneDataFromShopCartFMDB:(GoodsModel *)goodsModel;
//查询指定数据
- (void)queryDataFromShopCartFMDB:(GoodsModel *)goodsModel;
//查询全部数据
- (NSMutableArray *)queryAllDataFromShopCartFMDB;
@end

